package com.tmac.ams_pms_hook;

import android.util.Log;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class Hook2Handler implements InvocationHandler {
    private Object rawIActivityTaskManager;

    public Hook2Handler(Object rawIActivityTaskManager) {
        this.rawIActivityTaskManager = rawIActivityTaskManager;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Log.d("TAG", "invoke: "+method.getName());
        return method.invoke(rawIActivityTaskManager,args);
    }
}